package jgl.vajra.management.part.order.model;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.bean.OpenCityBean;
import jgl.vajra.management.part.order.contract.CustomerReceivingAreaContract;
import jgl.vajra.management.widget.manager.RxJavaHttpManager;
import jgl.vajra.management.widget.manager.retrofit.RetrofitJsonManager;

public class CustomerReceivingAreaModel extends CustomerReceivingAreaContract.Model{
    @Override
    public Observable<OpenCityBean> getOpenCityData(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().getOpenCityData(map)
                .compose(RxJavaHttpManager.applyTransformer());
    }
}
